<div class="editcate_top">
	<h2>Edit User</h2>
	<a href = "javascript:void(0)" onclick ="document.getElementById('div_action').style.display='none';document.getElementById('fade').style.display='none'"><img src="<?php echo admin_img("close.png")?>" class="png" /></a>
    </div>
<div class="editcate_ct">
<form name="form_user" id="form_user" action="<?php echo base_url_admin("user/add")?>" method="post">
	<ul>
    	 <div id="div_message"></div>
    	<li>
        	<span class="left2">Tên đăng nhập:</span>
            <span class="right2"><input type="text" name="username" id="username" value="<?php echo $user_info->user;?>" style="width:60%;" /></span>
        </li>   
        <li>
        	<span class="left2">Mật khẩu:</span>
            <span class="right2"><input type="password" name="password" id="password" value="" style="width:60%;" /></span>
        </li> 
        <li>
        	<span class="left2">Email:</span>
            <span class="right2"><input type="text" name="email" id="email" value="<?php echo $user_info->mail;?>" style="width:60%;" /></span>
        </li> 
       
        <li>
        	<span class="left2">Trạng thái:</span>
            <span class="right2">
            	<select style="width:130px;" name="status" id="status">
                  <option <?php echo ($user_info->status == 'yes') ? 'selected="selected"' : '';?> value="yes">Kích hoạt</option>
                  <option <?php echo ($user_info->status == 'no') ? 'selected="selected"' : '';?> value="no">Chưa kích hoạt</option>
           		 </select>
            </span>
        </li>
        <li class="end">
        	<input type="hidden" name="edit_id" value="<?php echo $user_info->userid;?>" />
        	<input type="button" name="cancel" value="close" class="btn" onclick="document.getElementById('div_action').style.display='none';document.getElementById('fade').style.display='none'" />
            <input type="button" name="submit" value="Save change" class="btn" onclick="edit_ajax();" />
        </li>
    </ul>
 </form>
</div>